// 路由封装
import route from "./route/index.js"
// 防抖方法
import debounce from "./libs/debounce.js"
// 节流方法
import throttle from "./libs/throttle.js"
// 缓存
import cache from "./libs/cache.js"
// md5
import md5 from "./libs/md5.js"
// 日期
import date from "./libs/date.js"

const $rui = {
	route,
	debounce,
	throttle,
	cache,
	md5,
	date,
}

uni.$rui = $rui;
const install = (Vue, Opitons = {}) => {
	Vue.config.globalProperties.$rui = $rui;
}

export default {
	install
}